<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- 第一步移动端视口 -->
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 第二步引入mui的css和js -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <script src="./assets/mui/js/mui.js"></script>
    <!-- 手机端JQ -->
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./js/template-web.js"></script>
    <script src="./assets/artTemplate/template-native.js"></script>
    <!-- 引入category的js -->
    <script src="./js/category.js"></script>
    <script src="./js/base.js"></script>
    <!-- 引入图标字体css -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/category.css">
</head>
<style>

</style>

<body>
    <!-- 主页面标题 -->
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-icon mui-icon-search mui-pull-right" href="search.html"></a>
        <h1 class="mui-title">乐海淘购物</h1>
    </header>

    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item " href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item mui-active" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon iconfont fa fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="register.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <!-- 内容 -->
    <div class="content">
        <div class="leftBox">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll  mui-clearfix">
                    <a href="#" class="active">运动馆</a>

                </div>
            </div>
        </div>
        <div class="rightBox">
            <ul class="ulBox mui-clearfix">
                <li><a href="#"><img src="images/brand1.png" alt=""><span>匡威</span></a></li>
                <li><a href="#"><img src="images/brand2.png" alt=""><span>匡威</span></a></li>
                <li><a href="#"><img src="images/brand3.png" alt=""><span>匡威</span></a></li>
                <li><a href="#"><img src="images/brand4.png" alt=""><span>匡威</span></a></li>
                <li><a href="#"><img src="images/brand5.png" alt=""><span>匡威</span></a></li>
            </ul>
        </div>
    </div>


    </script>


    <!-- /内容 -->

    <!-- 第一步写一个模板 -->
    <!-- 第二步type = html/text -->
    <!-- 引入template.js 后  使用  template()方法 -->
    <!-- template('第一个参数id名','第二个参数是一个对象:需要渲染至页面的对象') -->
    <script type="html/text" id="leftcate">
       {{each rows item}}
        <a href="#" class="active">{{item.categoryNam}}</a>
        {{/each}}
    </script>
    <!-- {{each 要遍历的数组名字  遍历后数组里面的每一项 数组索引}} -->
</body>

</html>